package com.easy.dn.ui.main.presenter;

import com.easy.common.baserx.RxSubscriber;
import com.easy.dn.bean.JobAddressBean;
import com.easy.dn.bean.ListBean;
import com.easy.dn.ui.main.contract.AddressTypeContract;

import java.util.List;
import java.util.Map;

/**
 * Created by 丁宁
 * on 2017/7/21.
 */

public class AddressTypePresenter extends AddressTypeContract.Presenter {

    @Override
    public void getData(List<JobAddressBean> mSelect) {
        mRxManage.add(mModel.getAddressList(mSelect).subscribe(new RxSubscriber<ListBean>(mContext,true) {
            @Override
            protected void _onNext(ListBean listBean) {
                mView.returnAddressList(listBean);
            }

            @Override
            protected void _onError(String message) {

            }
        }));
    }

    @Override
    public void getSelectData(Map<String, JobAddressBean> mSelect, String filterStr) {

    }
}
